package com.ws.binary;

public class BinaryConversion {

    public static void main(String[] args) {
        int number = 91;

        System.out.println(number);

        //转二进制
        System.out.println(Integer.toBinaryString(number));

        //转八进制
        System.out.println(Integer.toOctalString(number));

        //转十六进制
        System.out.println(Integer.toHexString(number));
    }
}
